/**************************************************************
  ************************************************************/

#ifndef __SOCKETBUF__
#define __SOCKETBUF__



typedef enum
{
  SOCKET_CHAR,
  SOCKET_INT,
  SOCKET_FLOAT

} PacketType;

typedef char sm_byte;

class SocketBuf
{
public:
	unsigned long	from_address;  // for multicasting
	int				num_bytes_successful;
	int				user_initted;
	int				num_bytes;
	sm_byte			type;
	sm_byte			*buf;
	
	SocketBuf();
	SocketBuf(int user_num_bytes,
			  int user_type,
			  void *user_buf);

	~SocketBuf();

	void setBufFromString(const char *new_value);
};  
#endif
